import {
  h,
  // ref,
  reactive,
  watchEffect
} from "../../node_modules/@vue/runtime-core/dist/runtime-core.cjs.js";

export default {
  setup() {
    // const resultCount = ref(0);
    const array = reactive([1, 2, 3, 4]);
    watchEffect(() => {
      console.log(array);
    });

    return () =>
      h("div", [
        h("button", {
          on: {
            click: function() {
              alert(1);
            }
          },
          domProps: {
            innerHTML: "点击我2"
          }
        })
        // h("span", [resultCount.value, array[2]])
      ]);
  }
};
